from ATEST.config.base import Base
import pytest
from selenium.webdriver.common.by import By

class Page(Base):
    login_loc=(By.XPATH,'/html/body/div[1]/div/div[2]/ul/li[1]/a')
    def login(self):
        self.click(self.login_loc)

    user_loc=(By.XPATH,'//*[@id="theForm"]/div[1]/span[2]/input')
    def user(self):
        self.send_keys(self.user_loc,'13811033962')

    password_loc=(By.XPATH,'//*[@id="theForm"]/div[2]/span[2]/input')
    def password(self):
        self.send_keys(self.password_loc,'123456')

    lo_loc=(By.XPATH,'//*[@id="theForm"]/div[5]/a')
    def lo(self):
        self.click(self.lo_loc)

    dy1_loc=(By.XPATH,'/html/body/div[1]/div/div[2]/ul/li[1]/a')
    def dy1(self):
        return self.text(self.dy1_loc)
